object connect()
{
	object login_ob;
	mixed err;

	write("master::connect()\n");

	err = catch(login_ob = new("login"));
	if (err) {
		write("Error: loading login object.\n");
		write(err);
		destruct(this_object());
	}
	return login_ob;
}

void create()
{
	write("master::create()\n");
}

void crash(string error, object command_giver, object current_object)
{
	"func_prof"->show_func_prof();

	write("master::crash()\n");

	shout("SYSTEM CRASH!!!\n");
	write_file("log/crash", MUD_NAME + " crashed on: " + ctime(time()) + ", error: " + error + "\n");
	if (command_giver)
		write_file("log/crash", sprintf( "this_player: %O\n", command_giver));
	if (current_object)
		write_file("log/crash", sprintf( "this_object: %O\n", current_object));
}
